package ch.il07.utils.logging.impl;

import ch.il07.utils.ConverterProperties;
import ch.il07.utils.logging.ChainLogger;
import ch.il07.utils.logging.Level;

public class ConsoleLogger extends ChainLogger {

	public ConsoleLogger() {
		super(Level.getLevelByName(ConverterProperties.getProperty("logger.console.level")));
	}

	@Override
	protected void writeLog(Level level, String msg, Throwable cause) {
		System.err.print(format(level, msg, cause));
	}

}
